home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xml / URIxschemaScheme.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  2.2 KB  |  46 lines

  1. package com.extensibility.xml;
  2.  
  3. import com.extensibility.plugin.PluginRegistry;
  4. import com.extensibility.plugin.api.URIScheme;
  5.  
  6. public class URIxschemaScheme extends URIDelegateScheme {
  7.    public static void registerPlugin(PluginRegistry var0) {
  8.       var0.registerPlugin("URIScheme10", Class.forName("com.extensibility.xml.URIxschemaScheme"), "URIxschemaScheme", 65537);
  9.    }
  10.  
  11.    public URIxschemaScheme() {
  12.    }
  13.  
  14.    public URIxschemaScheme(URIScheme var1, URIScheme.Manager var2) {
  15.       super(var1, var2);
  16.    }
  17.  
  18.    public void registerSchemes(URIScheme.Manager var1) {
  19.       super.manager = var1;
  20.       var1.registerScheme("x-schema", (Class)null, this);
  21.    }
  22.  
  23.    public URIScheme construct(String var1, String var2) {
  24.       URIScheme var3 = null;
  25.       int var4 = var2.indexOf(58, 9);
  26.       if (var4 > 0) {
  27.          String var5 = var2.substring(9, var4);
  28.          var3 = super.manager.makeURIScheme(var5, var2.substring(9));
  29.       }
  30.  
  31.       return var3;
  32.    }
  33.  
  34.    public URIScheme construct(String var1) {
  35.       return this.construct((String)null, var1);
  36.    }
  37.  
  38.    public URIScheme construct(URIScheme var1) {
  39.       return new URIxschemaScheme(var1, super.manager);
  40.    }
  41.  
  42.    public String getFullPath() {
  43.       return String.valueOf("x-schema:").concat(String.valueOf(super.delegateScheme.getFullPath()));
  44.    }
  45. }
  46.